/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-07     liuchao       the first version
 */
#ifndef APPLICATIONS_MQTT_H_
#define APPLICATIONS_MQTT_H_
#include "board.h"
#if 0
#include "mqttclient.h"
typedef struct mqtt_msg mqtt_msg_t;

mqtt_msg_t* mqtt_msg_new(const char* topic, uint8_t** payload, uint32_t payload_len);
mqtt_msg_t* mqtt_msg_new_str(const char* topic, const char* str);
mqtt_msg_t* mqtt_msg_new_uint32(const char* topic, rt_uint32_t v);
mqtt_msg_t* mqtt_msg_new_float(const char* topic, float v);
void mqtt_msg_destroy(mqtt_msg_t* self);

void mqtt_pub_aliyun(mqtt_msg_t** msg);
void mqtt_sub_aliyun(const char* topic, mqtt_qos_t qos, message_handler_t msg_handler);
#endif
#endif /* APPLICATIONS_MQTT_H_ */
